package com.stageadminserver.adminserver.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.stageadminserver.adminserver.mapper.TypesMapper;
import com.stageadminserver.adminserver.service.TypesService;
import com.stagecommon.common.pojo.RespBean;
import com.stagecommon.common.pojo.Types;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: yxl
 * @since: 2022-05-14
 **/
@Slf4j
@Service
public class TypesServiceImpl extends ServiceImpl<TypesMapper, Types> implements TypesService {

    @Autowired
    private TypesMapper typesMapper;

    @Override
    public RespBean<List<Types>> selectAllTypes() {
        return RespBean.operationSuccess("查询成功",200,typesMapper.selectList(new QueryWrapper<>()));
    }
}
